Repository navigation
[0-size Tensor Job2 No.62] Add 0-size Tensor support for paddle.nn.functional.margin_cross_entropy - #354
Merged
Conversation
|
Thanks for your contribution! |
wanghuancoder
left a comment
Collaborator
There was a problem hiding this comment.
- 运行Torch报错吗?
- 如果要删除,不仅要删除report里的配置还需要删除tester/api_config/7_0_size里的配置
Collaborator
尽量与Torch保持一致,另外可以让Paddle报错提示0非法 |
Contributor
Author
这里是numpy error,PaddleAPITest 生成数据的规则拦截,没有到torch运行的步骤 PaddleAPITest/tester/paddle_to_torch/rules.py Line 3567 in 2a636db PaddleAPITest 中是自定义规则,用torch.nn.functional.softmax + torch.nn.functional.cross_entropy,没有torch对应api |
Contributor
Author
|
Paddle报错的PR PaddlePaddle/Paddle#74010 |
This was referenced Jul 15, 2025
Contributor
Author
|
@cangtianhuang 已在paddle提交PR修改报错,这里需要删除配置 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

62 paddle.nn.functional.margin_cross_entropy

PaddleAPITest 为numpy error
查看文档,参数2为类别,类别可能需要大于0,为0没有实际含义

https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/margin_cross_entropy_cn.html#margin-cross-entropy
取消配置信息
166 paddle.nn.functional.ctc_loss 取消配置信息
257 paddle.signal.istft 没有配置信息没有修改
151 paddle.nn.functional.affine_grid 用例为numpy error, 取消配置信息